<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/filemanager/file.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--filemanager.html'>filemanager</a>/file.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--filemanager.html'>filemanager</a>/file.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/filemanager/file.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/file.h.html' title='Multiple included from 7 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='comment'>/** \file  file.h</em>
<a id='L2' name='L2'></a>   2 <em class='comment'> *  \brief Header: File and directory operation routines</em>
<a id='L3' name='L3'></a>   3 <em class='comment'> */</em>
<a id='L4' name='L4'></a>   4 
<a id='L5' name='L5'></a>   5 <em class='sharp'>#ifndef</em> <a href='../S/src--filemanager--file.h.html#L6' title='Defined at 6 in src/filemanager/file.h.'>MC__FILE_H</a>
<a id='L6' name='L6'></a>   6 <em class='sharp'>#define</em> <a href='../S/src--filemanager--file.h.html#L5' title='Referred from 5 in src/filemanager/file.h.'>MC__FILE_H</a>
<a id='L7' name='L7'></a>   7 
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> &lt;inttypes.h&gt;           <em class='comment'>/* off_t, uintmax_t */</em>
<a id='L9' name='L9'></a>   9 
<a id='L10' name='L10'></a>  10 <em class='sharp'>#include</em> "<a href='lib--global.h.html'>lib/global.h</a>"
<a id='L11' name='L11'></a>  11 <em class='sharp'>#include</em> "<a href='lib--widget.h.html'>lib/widget.h</a>"
<a id='L12' name='L12'></a>  12 
<a id='L13' name='L13'></a>  13 <em class='sharp'>#include</em> "<a href='src--filemanager--fileopctx.h.html'>fileopctx.h</a>"
<a id='L14' name='L14'></a>  14 
<a id='L15' name='L15'></a>  15 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/dirsize_status_msg_t.html' title='Multiple referred from 11 places.'>dirsize_status_msg_t</a> <a href='../D/dirsize_status_msg_t.html' title='Multiple defined in 2 places.'>dirsize_status_msg_t</a>;
<a id='L18' name='L18'></a>  18 
<a id='L19' name='L19'></a>  19 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L20' name='L20'></a>  20 
<a id='L21' name='L21'></a>  21 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L22' name='L22'></a>  22 
<a id='L23' name='L23'></a>  23 <em class='comment'>/* status dialog of directory size computing */</em>
<a id='L24' name='L24'></a>  24 <strong class='reserved'>struct</strong> <a href='../R/dirsize_status_msg_t.html' title='Multiple referred from 11 places.'>dirsize_status_msg_t</a>
<a id='L25' name='L25'></a>  25 <em class='brace'>{</em>
<a id='L26' name='L26'></a>  26     <a href='../D/status_msg_t.html' title='Multiple defined in 2 places.'>status_msg_t</a> <a href='../Y/status_msg.html' title='Multiple used in 5 places.'>status_msg</a>;    <em class='comment'>/* base class */</em>
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/allow_skip.html' title='Multiple used in 5 places.'>allow_skip</a>;
<a id='L29' name='L29'></a>  29     <a href='../S/lib--widget--label.h.html#L23' title='Defined at 23 in lib/widget/label.h.'>WLabel</a> *<a href='../Y/dirname.html' title='Multiple used in 79 places.'>dirname</a>;
<a id='L30' name='L30'></a>  30     <a href='../S/lib--widget--label.h.html#L23' title='Defined at 23 in lib/widget/label.h.'>WLabel</a> *<a href='../Y/count_size.html' title='Multiple used in 6 places.'>count_size</a>;
<a id='L31' name='L31'></a>  31     <a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> *<a href='../Y/abort_button.html' title='Multiple used in 10 places.'>abort_button</a>;
<a id='L32' name='L32'></a>  32     <a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> *<a href='../Y/skip_button.html' title='Multiple used in 6 places.'>skip_button</a>;
<a id='L33' name='L33'></a>  33     <strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> *<a href='../Y/dirname_vpath.html' title='Multiple used in 19 places.'>dirname_vpath</a>;
<a id='L34' name='L34'></a>  34     <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/dir_count.html' title='Multiple used in 14 places.'>dir_count</a>;
<a id='L35' name='L35'></a>  35     <a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> <a href='../Y/total_size.html' title='Multiple used in 3 places.'>total_size</a>;
<a id='L36' name='L36'></a>  36 <em class='brace'>}</em>;
<a id='L37' name='L37'></a>  37 
<a id='L38' name='L38'></a>  38 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L39' name='L39'></a>  39 
<a id='L40' name='L40'></a>  40 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/src--filemanager--file.c.html#L2165' title='Defined at 2165 in src/filemanager/file.c.'>file_is_symlink_to_dir</a> (<strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>, <strong class='reserved'>struct</strong> <a href='../Y/stat.html' title='Multiple used in 258 places.'>stat</a> *<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> * <a href='../Y/stale_link.html' title='Multiple used in 36 places.'>stale_link</a>);
<a id='L43' name='L43'></a>  43 
<a id='L44' name='L44'></a>  44 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L2199' title='Defined at 2199 in src/filemanager/file.c.'>copy_file_file</a> (<a href='../S/src--filemanager--fileopctx.h.html#L178' title='Defined at 178 in src/filemanager/fileopctx.h.'>file_op_total_context_t</a> * <a href='../Y/tctx.html' title='Multiple used in 118 places.'>tctx</a>, <a href='../S/src--filemanager--fileopctx.h.html#L164' title='Defined at 164 in src/filemanager/fileopctx.h.'>file_op_context_t</a> * <a href='../Y/ctx.html' title='Multiple used in 492 places.'>ctx</a>,
<a id='L45' name='L45'></a>  45                                    <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/src_path.html' title='Multiple used in 16 places.'>src_path</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/dst_path.html' title='Multiple used in 23 places.'>dst_path</a>);
<a id='L46' name='L46'></a>  46 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L3025' title='Defined at 3025 in src/filemanager/file.c.'>move_dir_dir</a> (<a href='../S/src--filemanager--fileopctx.h.html#L178' title='Defined at 178 in src/filemanager/fileopctx.h.'>file_op_total_context_t</a> * <a href='../Y/tctx.html' title='Multiple used in 118 places.'>tctx</a>, <a href='../S/src--filemanager--fileopctx.h.html#L164' title='Defined at 164 in src/filemanager/fileopctx.h.'>file_op_context_t</a> * <a href='../Y/ctx.html' title='Multiple used in 492 places.'>ctx</a>,
<a id='L47' name='L47'></a>  47                                  <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/d.html' title='Multiple used in 234 places.'>d</a>);
<a id='L48' name='L48'></a>  48 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L2744' title='Defined at 2744 in src/filemanager/file.c.'>copy_dir_dir</a> (<a href='../S/src--filemanager--fileopctx.h.html#L178' title='Defined at 178 in src/filemanager/fileopctx.h.'>file_op_total_context_t</a> * <a href='../Y/tctx.html' title='Multiple used in 118 places.'>tctx</a>, <a href='../S/src--filemanager--fileopctx.h.html#L164' title='Defined at 164 in src/filemanager/fileopctx.h.'>file_op_context_t</a> * <a href='../Y/ctx.html' title='Multiple used in 492 places.'>ctx</a>,
<a id='L49' name='L49'></a>  49                                  <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/d.html' title='Multiple used in 234 places.'>d</a>,
<a id='L50' name='L50'></a>  50                                  <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/toplevel.html' title='Multiple used in 3 places.'>toplevel</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/move_over.html' title='Multiple used in 6 places.'>move_over</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/do_delete.html' title='Multiple used in 4 places.'>do_delete</a>,
<a id='L51' name='L51'></a>  51                                  <a href='../Y/GSList.html' title='Multiple used in 57 places.'>GSList</a> * <a href='../Y/parent_dirs.html' title='Multiple used in 7 places.'>parent_dirs</a>);
<a id='L52' name='L52'></a>  52 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L3036' title='Defined at 3036 in src/filemanager/file.c.'>erase_dir</a> (<a href='../S/src--filemanager--fileopctx.h.html#L178' title='Defined at 178 in src/filemanager/fileopctx.h.'>file_op_total_context_t</a> * <a href='../Y/tctx.html' title='Multiple used in 118 places.'>tctx</a>, <a href='../S/src--filemanager--fileopctx.h.html#L164' title='Defined at 164 in src/filemanager/fileopctx.h.'>file_op_context_t</a> * <a href='../Y/ctx.html' title='Multiple used in 492 places.'>ctx</a>,
<a id='L53' name='L53'></a>  53                               <strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/vpath.html' title='Multiple used in 999 places.'>vpath</a>);
<a id='L54' name='L54'></a>  54 
<a id='L55' name='L55'></a>  55 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/src--filemanager--file.c.html#L3189' title='Defined at 3189 in src/filemanager/file.c.'>panel_operate</a> (<strong class='reserved'>void</strong> *<a href='../Y/source_panel.html' title='Multiple used in 3 places.'>source_panel</a>, <a href='../S/src--filemanager--fileopctx.h.html#L38' title='Defined at 38 in src/filemanager/fileopctx.h.'>FileOperation</a> <a href='../Y/op.html' title='Multiple used in 59 places.'>op</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/force_single.html' title='Multiple used in 12 places.'>force_single</a>);
<a id='L56' name='L56'></a>  56 
<a id='L57' name='L57'></a>  57 <em class='comment'>/* Error reporting routines */</em>
<a id='L58' name='L58'></a>  58 
<a id='L59' name='L59'></a>  59 <em class='comment'>/* Report error with one file */</em>
<a id='L60' name='L60'></a>  60 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L3449' title='Defined at 3449 in src/filemanager/file.c.'>file_error</a> (<a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/allow_retry.html' title='Multiple used in 11 places.'>allow_retry</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/file.html' title='Multiple used in 289 places.'>file</a>);
<a id='L61' name='L61'></a>  61 
<a id='L62' name='L62'></a>  62 <em class='comment'>/* return value is FILE_CONT or FILE_ABORT */</em>
<a id='L63' name='L63'></a>  63 <a href='../S/src--filemanager--fileopctx.h.html#L58' title='Defined at 58 in src/filemanager/fileopctx.h.'>FileProgressStatus</a> <a href='../S/src--filemanager--file.c.html#L3166' title='Defined at 3166 in src/filemanager/file.c.'>compute_dir_size</a> (<strong class='reserved'>const</strong> <a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> * <a href='../Y/dirname_vpath.html' title='Multiple used in 19 places.'>dirname_vpath</a>, <a href='../D/dirsize_status_msg_t.html' title='Multiple defined in 2 places.'>dirsize_status_msg_t</a> * <a href='../Y/sm.html' title='Multiple used in 97 places.'>sm</a>,
<a id='L64' name='L64'></a>  64                                      <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_dir_count.html' title='Multiple used in 3 places.'>ret_dir_count</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_marked_count.html' title='Multiple used in 3 places.'>ret_marked_count</a>,
<a id='L65' name='L65'></a>  65                                      <a href='../Y/uintmax_t.html' title='Multiple used in 86 places.'>uintmax_t</a> * <a href='../Y/ret_total.html' title='Multiple used in 10 places.'>ret_total</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/follow_symlinks.html' title='Multiple used in 6 places.'>follow_symlinks</a>);
<a id='L66' name='L66'></a>  66 
<a id='L67' name='L67'></a>  67 <strong class='reserved'>void</strong> <a href='../S/src--filemanager--file.c.html#L3071' title='Defined at 3071 in src/filemanager/file.c.'>dirsize_status_init_cb</a> (<a href='../D/status_msg_t.html' title='Multiple defined in 2 places.'>status_msg_t</a> * <a href='../Y/sm.html' title='Multiple used in 97 places.'>sm</a>);
<a id='L68' name='L68'></a>  68 <strong class='reserved'>int</strong> <a href='../S/src--filemanager--file.c.html#L3113' title='Defined at 3113 in src/filemanager/file.c.'>dirsize_status_update_cb</a> (<a href='../D/status_msg_t.html' title='Multiple defined in 2 places.'>status_msg_t</a> * <a href='../Y/sm.html' title='Multiple used in 97 places.'>sm</a>);
<a id='L69' name='L69'></a>  69 <strong class='reserved'>void</strong> <a href='../S/src--filemanager--file.c.html#L3149' title='Defined at 3149 in src/filemanager/file.c.'>dirsize_status_deinit_cb</a> (<a href='../D/status_msg_t.html' title='Multiple defined in 2 places.'>status_msg_t</a> * <a href='../Y/sm.html' title='Multiple used in 97 places.'>sm</a>);
<a id='L70' name='L70'></a>  70 
<a id='L71' name='L71'></a>  71 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L72' name='L72'></a>  72 <em class='sharp'>#endif</em> <em class='comment'>/* MC__FILE_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+72 src/filemanager/file.h'  /> */</em>
</body>
</html>
